home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / GAS211S2.ZIP / src / gas-211 / opcodes / makefile < prev    next >
Makefile  |  1993-11-28  |  5KB  |  191 lines

  1. # Makefile generated by "configure.bat"
  2. #    Makefile template for Configure for the opcodes library.
  3. #    Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  4. #    Written by Cygnus Support.
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. srcdir = .
  18.  
  19. prefix = /usr/local
  20.  
  21. exec_prefix = $(prefix)
  22. bindir = $(exec_prefix)/bin
  23. libdir = $(exec_prefix)/lib
  24.  
  25. datadir = $(prefix)/lib
  26. mandir = $(prefix)/man
  27. man1dir = $(mandir)/man1
  28. man2dir = $(mandir)/man2
  29. man3dir = $(mandir)/man3
  30. man4dir = $(mandir)/man4
  31. man5dir = $(mandir)/man5
  32. man6dir = $(mandir)/man6
  33. man7dir = $(mandir)/man7
  34. man8dir = $(mandir)/man8
  35. man9dir = $(mandir)/man9
  36. infodir = $(prefix)/info
  37. includedir = $(prefix)/include
  38. oldincludedir =
  39. docdir = $(srcdir)/doc
  40.  
  41. SHELL = /bin/sh
  42.  
  43. INSTALL = install -c
  44. INSTALL_PROGRAM = $(INSTALL)
  45. INSTALL_DATA = $(INSTALL)
  46.  
  47. AR = ar
  48. AR_FLAGS = qc
  49. CFLAGS = -g
  50. BISON = bison
  51. MAKEINFO = makeinfo
  52. RANLIB = ranlib
  53.  
  54. INCDIR = $(srcdir)/../include 
  55. BFDDIR = $(srcdir)/../bfd
  56. CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I$(BFDDIR)
  57. DEP = mkdep
  58.  
  59.  
  60. TARGETLIB = libopcodes.a
  61.  
  62. # To circumvent a Sun make VPATH bug, each file listed here
  63. # should also have a foo.o: foo.c line further along in this file.
  64. DIS_LIBS = i386-dis.o z8k-dis.o m68k-dis.o mips-dis.o h8500-dis.o dis-buf.o \
  65.     sparc-dis.o a29k-dis.o i960-dis.o alpha-dis.o sh-dis.o hppa-dis.o
  66.  
  67. OFILES = $(DIS_LIBS) sparc-opc.o m68881-ext.o
  68. #### host and target dependent Makefile fragments come in here.
  69. ###
  70.  
  71. FLAGS_TO_PASS = \
  72.     "against=$(against)" \
  73.     "AR=$(AR)" \
  74.     "AR_FLAGS=$(AR_FLAGS)" \
  75.     "CC=$(CC)" \
  76.     "CFLAGS=$(CFLAGS)" \
  77.     "RANLIB=$(RANLIB)" \
  78.     "MAKEINFO=$(MAKEINFO)" \
  79.     "INSTALL=$(INSTALL)" \
  80.     "INSTALL_DATA=$(INSTALL_DATA)" \
  81.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  82.     "BISON=$(BISON)"
  83.  
  84. .c.o:
  85.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  86.  
  87.  
  88. # C source files that correspond to .o's.
  89. CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c
  90.  
  91. STAGESTUFF = $(TARGETLIB) $(OFILES)
  92.  
  93. all: $(TARGETLIB) 
  94.  
  95.  
  96. .NOEXPORT:
  97.  
  98. installcheck check:
  99.  
  100. info:
  101. clean-info:
  102. install-info:
  103. dvi:
  104.  
  105. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  106.  
  107.  
  108. $(TARGETLIB): $(OFILES)
  109.     -rm -f $(TARGETLIB)
  110.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  111.      $(RANLIB) $(TARGETLIB)
  112.  
  113. # Circumvent Sun Make bug with VPATH.
  114. a29k-dis.o: a29k-dis.c
  115. dis-buf.o: dis-buf.c
  116. h8500-dis.o: h8500-dis.c
  117. i386-dis.o: i386-dis.c
  118. i960-dis.o: i960-dis.c
  119. m68881-ext.o: m68881-ext.c
  120. m68k-dis.o: m68k-dis.c
  121. mips-dis.o: mips-dis.c
  122. sparc-dis.o: sparc-dis.c
  123. sparc-opc.o: sparc-opc.c
  124. z8k-dis.o: z8k-dis.c
  125. sh-dis.o: sh-dis.c
  126. alpha-dis.o: alpha-dis.c
  127. hppa-dis.o: hppa-dis.c $(srcdir)/../include/opcode/hppa.h
  128.  
  129. tags etags: TAGS
  130.  
  131. TAGS: force
  132.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  133.  
  134. MOSTLYCLEAN = *.o core *.E *.p *.ip
  135. mostyclean:
  136.     -rm -rf $(MOSTLYCLEAN)
  137. clean:
  138.     -rm -f *.a $(MOSTLYCLEAN)
  139. distclean: clean
  140.     -rm -rf Makefile config.status sysdep.h TAGS
  141. clobber realclean: distclean
  142.  
  143. # Mark everything as depending on config.status, since the timestamp on
  144. # sysdep.h might actually move backwards if we reconfig and relink it
  145. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  146. RECONFIG = config.status
  147.  
  148.  
  149.  
  150. # This target should be invoked before building a new release.
  151. # 'VERSION' file must be present and contain a string of the form "x.y"
  152. #
  153. roll:
  154.     @V=`cat VERSION`        ; \
  155.     MAJ=`sed 's/\..*//' VERSION`    ; \
  156.     MIN=`sed 's/.*\.//' VERSION`    ; \
  157.     V=$$MAJ.`expr $$MIN + 1`    ; \
  158.     -rm -f VERSION            ; \
  159.     echo $$V >VERSION        ; \
  160.     echo Version $$V
  161.  
  162. # Dummy target to force execution of dependent targets.
  163. #
  164. force:
  165.  
  166. install:
  167.     -parent=`echo $(libdir)|sed -e 's@/[^/]*$$@@'`; \
  168.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  169.     -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
  170.     $(INSTALL_DATA) $(TARGETLIB) $(libdir)/libopcodes.a
  171.     $(RANLIB) $(libdir)/libopcodes.a
  172.  
  173. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  174.     $(SHELL) ./config.status
  175.  
  176. dep: $(CFILES)
  177.     mkdep $(CFLAGS) $?
  178.  
  179.  
  180. # What appears below is generated by a hacked mkdep using gcc -MM.
  181.  
  182. # DO NOT DELETE THIS LINE -- mkdep uses it.
  183. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  184.  
  185.  
  186. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  187.  
  188.